package com.summary.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.summary.mapper.WeekTimeMapper;
import com.summary.domain.WeekTime;
import com.summary.service.IWeekTimeService;

/**
 * 每周时间Service业务层处理
 *
 * @author ruoyi
 * @date 2024-01-15
 */
@Service
public class WeekTimeServiceImpl implements IWeekTimeService
{
    @Autowired
    private WeekTimeMapper weekTimeMapper;

    /**
     * 查询每周时间
     *
     * @param id 每周时间主键
     * @return 每周时间
     */
    @Override
    public WeekTime selectWeekTimeById(Long id)
    {
        return weekTimeMapper.selectWeekTimeById(id);
    }

    /**
     * 查询每周时间列表
     *
     * @param weekTime 每周时间
     * @return 每周时间
     */
    @Override
    public List<WeekTime> selectWeekTimeList(WeekTime weekTime)
    {
        return weekTimeMapper.selectWeekTimeList(weekTime);
    }

    /**
     * 新增每周时间
     *
     * @param weekTime 每周时间
     * @return 结果
     */
    @Override
    public int insertWeekTime(WeekTime weekTime)
    {
        return weekTimeMapper.insertWeekTime(weekTime);
    }

    /**
     * 修改每周时间
     *
     * @param weekTime 每周时间
     * @return 结果
     */
    @Override
    public int updateWeekTime(WeekTime weekTime)
    {
        return weekTimeMapper.updateWeekTime(weekTime);
    }

    /**
     * 批量删除每周时间
     *
     * @param ids 需要删除的每周时间主键
     * @return 结果
     */
    @Override
    public int deleteWeekTimeByIds(Long[] ids)
    {
        return weekTimeMapper.deleteWeekTimeByIds(ids);
    }

    /**
     * 删除每周时间信息
     *
     * @param id 每周时间主键
     * @return 结果
     */
    @Override
    public int deleteWeekTimeById(Long id)
    {
        return weekTimeMapper.deleteWeekTimeById(id);
    }
}
